<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;

class Category extends Model
{
    protected $fillable = ['name','description','parent_id','post_count'];


    protected static function boot()
    {
        parent::boot();
//        static::addGlobalScope('test',function (Builder $builder) {
//            $builder->where('id',1);
//        });
    }
}
